home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / Shadez_TheBlackOperations_fla / LOGO_292.as < prev    next >
Text File  |  2011-08-19  |  1KB  |  61 lines

  1. package Shadez_TheBlackOperations_fla
  2. {
  3.    import Local.External.CURL;
  4.    import flash.display.MovieClip;
  5.    import flash.display.SimpleButton;
  6.    import flash.events.Event;
  7.    import flash.events.MouseEvent;
  8.    import flash.events.TimerEvent;
  9.    import flash.utils.Timer;
  10.    
  11.    public dynamic class LOGO_292 extends MovieClip
  12.    {
  13.        
  14.       
  15.       public var bTButton:SimpleButton;
  16.       
  17.       public var nTimer:Timer;
  18.       
  19.       public var mFinished:Boolean;
  20.       
  21.       public function LOGO_292()
  22.       {
  23.          if(true)
  24.          {
  25.             super();
  26.             addFrameScript(0,frame1);
  27.          }
  28.       }
  29.       
  30.       public function e_ANIMATE(param1:TimerEvent) : void
  31.       {
  32.          this.nextFrame();
  33.          if(this.currentFrame == this.totalFrames)
  34.          {
  35.             nTimer.removeEventListener("timer",e_ANIMATE);
  36.             dispatchEvent(new Event("FINISHED"));
  37.          }
  38.       }
  39.       
  40.       public function e_GOTOURL(param1:MouseEvent) : void
  41.       {
  42.          CURL.GamesWebsite();
  43.       }
  44.       
  45.       function frame1() : *
  46.       {
  47.          stop();
  48.          mFinished = false;
  49.          bTButton.addEventListener(MouseEvent.MOUSE_UP,e_GOTOURL);
  50.          nTimer = new Timer(1000 / 30);
  51.          nTimer.addEventListener("timer",e_ANIMATE);
  52.       }
  53.       
  54.       public function START() : *
  55.       {
  56.          visible = true;
  57.          nTimer.start();
  58.       }
  59.    }
  60. }
  61.